/* Theme */
.ayu {
  --popper-bg: var(--quote-bg);
  --popper-bg-hover: #1D1F21;
  --popper-color: var(--fg);
  --highlight: #46480f;
}

.coal {
  --popper-bg: var(--quote-bg);
  --popper-bg-hover: #1D1F21;
  --popper-color: var(--fg);
  --highlight: #46480f;
}

.light {
  --popper-bg: #262625;
  --popper-bg-hover: #aaaaaa;
  --popper-color: white;
  --highlight: #ffffc1;
}

.navy {
  --popper-bg: var(--quote-bg);
  --popper-bg-hover: #1D1F21;
  --popper-color: var(--fg);
  --highlight: #46480f;
}

.rust {
  --popper-bg: var(--quote-bg);
  --popper-bg-hover: #aaaaaa;
  --popper-color: var(--fg);
  --highlight: #fdf2ca;
}

.pop {
  background-color: var(--popper-bg);
  color: var(--popper-color);
  padding: 5px 8px;
  display: inline-block;
  border-radius: 5px;
  background-clip: padding-box;
}

// prevent tooltip dissapearing when cursor moves between
// highlight and tooltip by adding transparent border between
// the two
.pop-top {
  border-bottom: 8px solid transparent;
}
.pop-bottom {
  border-top: 8px solid transparent;
}

.pop-arrow,
.pop-arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}

.pop-arrow {
  visibility: hidden;
}

.pop-arrow::before {
  visibility: visible;
  content: '';
  transform: rotate(45deg);
}

.pop[data-popper-placement^='top'] > .pop-arrow {
  bottom: -4px;
}

.pop[data-popper-placement^='bottom'] > .pop-arrow {
  top: -4px;
}

.pop[data-popper-placement^='left'] > .pop-arrow {
  right: -4px;
}

.pop[data-popper-placement^='right'] > .pop-arrow {
  left: -4px;
}

.pop-button {
  -moz-transition: all .1s ease-in;
  -o-transition: all .1s ease-in;
  -webkit-transition: all .1s ease-in;
  transition: all .1s ease-in;
  padding: 5px 8px;

  // make emojis white
  color: transparent;
  text-shadow: 0 0 0 var(--popper-color);

  // prevent text cursor when hovering over emoji
  cursor: pointer;
}

.pop-button:hover {
  background-color: var(--popper-bg-hover);
}

.pop-feedback-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
  align-items: center;
}

.pop-feedback-text {
  padding-right: 0.5rem;
  border-right: 1px solid var(--popper-bg-hover);
}

.ReactModal__Overlay {
  z-index: 101; // must be >= #menu-bar z-index

  textarea {
    font-family: 'Open Sans', sans-serif;
    min-width: 250px;
  }

  button, textarea {
    // safari won't zoom in on input if font-size >= 16px
    font-size: 16px;
  }
}

.highlight-mengshou-wrap {
  background-color: var(--highlight) !important;
}